<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>修改会员信息</title>
    <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/Theme1/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/style.min.css?v=4.1.0" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/static/plupload/upfiless.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/Theme1/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/Theme1/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>奖金兑换 <a style="margin-left: 15px; color:#06cbc4" href="__URL__/Tobloglists">兑换列表</a></h5>
                        <div class="ibox-tools">
                            
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form method="post" action="actOpBonusToB" class="form-horizontal" id="form-admin-add" enctype="multipart/form-data" onsubmit="return ckForm()">
                           
                            <div class="form-group">
                                <label class="col-sm-1 control-label">会员编号</label>
                                <div class="col-sm-3">
								
									<{$userarr.loginname}>


                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label">可兑换积分</label>
                                <div class="col-sm-3">

                                    <{$userarr.amount}>
                                    <input type="hidden" value="<{$userarr.amount}>" id="bdAmount" name="bdAmount" />

                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label">兑换报单币数量</label>
                                <div class="col-sm-3">
                                    <input type="text" name="txt_baodanCoin" id="txt_baodanCoin" class="form-control" onBlur="ckbaodan(this.value)" value="" />
                                </div>

                            </div>

                                
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">确定兑换</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="__PUBLIC__/Theme1/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/Theme1/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__PUBLIC__/Theme1/js/content.min.js?v=1.0.0"></script>
    <script src="__PUBLIC__/Theme1/js/plugins/iCheck/icheck.min.js"></script>

<script type="text/javascript" src="__PUBLIC__/Theme1/check/js/jquery.validate.min.js"></script> 

<script type="text/javascript" src="__PUBLIC__/Theme1/check/js/messages_zh.min.js"></script> 

<script type="text/javascript" src="__PUBLIC__/Theme1/check/js/validate-methods.js"></script> 
<script type="text/javascript" src="__PUBLIC__/Theme1/lib/webuploader/0.1.5/webuploader.min.js"></script> 

    <script>
        $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
    </script>
    

    <script type="text/javascript">

        function ckbaodan(){
            var inputCoin = $("#txt_baodanCoin").val();
            var bdAmount = $("#bdAmount").val();

            if(inputCoin<0){
                inputCoin = 0;
                $("#txt_baodanCoin").val("0");
            }

            if(inputCoin>bdAmount) {
                inputCoin = bdAmount;
                $("#txt_baodanCoin").val(inputCoin);
            }
        }

        function ckForm(){
            var inputCoin = $("#txt_baodanCoin").val();
            var bdAmount = $("#bdAmount").val();

            if(inputCoin<0){
                alert("输入积分有误");
                return false;
            }

            if(inputCoin>bdAmount) {
                alert("输入积分有误");
                return false;
            }
        }

	

    </script>
	
</body>

</html>
